package com.stylefeng.guns.modular.count.controller;

public enum ClickEnum {
    LOAN_TYPE("00", "贷款分类"),
    NET_LOAN_TYPE("01", "网贷分类"),

    NET_LOAN("02", "网贷产品"),
    LOAN("03", "贷款产品"),

    MER_DETAIL("04", "商户详情");

    private String code;
    private String name;

    ClickEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static String desc(String value) {
        if (value == null) {
            return "";
        } else {
            for (ClickEnum ms : ClickEnum.values()) {
                if (ms.getCode() == value) {
                    return ms.getName();
                }
            }
            return "";
        }
    }
}
